$("#submissionTcSf").click(function () {
    var remarks = $("#remarks").val();
    var title = $("#title").val();
    if (remarks == "" || remarks == null) {
        alert("随访模板内容不能为空！");
        return;
    } else if (title == "" || title == null) {
        alert("随访结果模板标题不能为空！");
        return;
    } else {
        var r = confirm("提交随访模板内容？");
        if (r == true) {
            $.ajax({
                url: Feng.ctxPath + "/tcRevisit/addsf",
                type: "post",
                data: {
                    "title": title,
                    "remarks": remarks
                },
                success: function (data) {
                    Feng.success("提交成功!");
                    parent.window.location.reload()
                    parent.layer.close(parent.layer.getFrameIndex(window.name));
                }
            });
        } else {
        }
    }
});

$("#submissionTcJg").click(function () {
    var remarks = $("#remarks").val();
    var title = $("#title").val();
    if (remarks == "" || remarks == null) {
        alert("随访结果模板内容不能为空！");
        return;
    } else if (title == "" || title == null) {
        alert("随访结果模板标题不能为空！");
        return;
    }else {
        var r = confirm("提交随访结果模板内容？");
        if (r == true) {
            $.ajax({
                url: Feng.ctxPath + "/tcRevisit/addjg",
                type: "post",
                data: {
                    "title": title,
                    "remarks": remarks
                },
                success: function (data) {
                    Feng.success("提交成功!");
                    parent.window.location.reload()
                    parent.layer.close(parent.layer.getFrameIndex(window.name));
                }
            });
        } else {
        }
    }
});